/**
 * Created by Administrator on 2016/1/7.
 */
$(function(){
    $(document).on("pageshow","#bmc_html",function(){
        var $p = $("#bmc_html");

        var $audio = $("#audioPlayer");
        $audio.attr("src","audio/难忘今宵 - 李谷一.mp3");
        $audio.attr("loop","loop");
        $audio[0].play();

        var $w = $p.find(".word");
        $w.css({
            top:400,
            left:$(window).width()/2-$w.width()/2
        });
        swiperAnimateMany($w);
        var $m = $p.find(".mjf");
        $m.css({
            top:500,
            left:$(window).width()/2-$m.width()-200
        });
        swiperAnimateMany($m);

        var $d = $p.find(".djm");
        $d.css({
            top:500,
            left:$(window).width()/2+$d.width()-120
        });
        swiperAnimateMany($d);

        setTimeout(function(){
            damoo.emit({ text: "豆豆：大家可以拍合影！！！！！！！！！！！！！！", color: $.getRandomColor() ,shadow: { color: "#f49"} });
        },2000);
        setTimeout(function(){
            damoo.emit({ text: "豆豆：吃好喝好哦：）！！！！！！！！！！！！！！", color: $.getRandomColor() ,shadow: { color: "#f49"} });
        },4000);
    })
});